﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using Model;
using Controller;

namespace Facade
{
    public class SetupYearFacade
    {
        public string Save(SetupYear SetupYear)
        {
            SetupYearController cont = new SetupYearController();
            return cont.Save(SetupYear);
        }

       

        public IList<SetupYear> GetAll(string sSearch, int PageNumber, int DataLength, string SortCol, string SortDirection, out int TotalData)
        {
            IList<SetupYear> SetupYear = new List<SetupYear>();
            SetupYearController cont = new SetupYearController();
            SetupYear = cont.GetAll(sSearch, PageNumber, DataLength, SortCol, SortDirection, out TotalData);
            return SetupYear;
        }



        public SetupYear GetByID(int ID)
        {
            SetupYear SetupYear = new SetupYear();
            SetupYearController cont = new SetupYearController();
            SetupYear = cont.GetByID(ID);
            return SetupYear;
        }

       
    }
}